package com.s_widget;

import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

import androidx.appcompat.app.AppCompatActivity;

import com.s7.widget.widget.GradualTabScrollView;

import java.util.ArrayList;
import java.util.List;

public class TabScrollActivity extends AppCompatActivity {

    private GradualTabScrollView scrollView;
    private ListView list;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_tab_scroll);
        scrollView = findViewById(R.id.tab_scroll_s);
        list = findViewById(R.id.tab_scroll_list);
        List<String> data = new ArrayList<>();
        for(int i = 0; i < 36; i++) {
            data.add("第" + i + "条数据");
        }
        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
                android.R.layout.simple_list_item_1,
                android.R.id.text1,
                data);
        list.setAdapter(adapter);
    }
}
